package cn.tedu.lbs.stock.web.repository;

import cn.tedu.lbs.stock.web.mapper.StockMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tarena.lbs.pojo.stock.po.CouponStockPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class StockRepository extends ServiceImpl<StockMapper, CouponStockPO> {
    @Autowired
    private StockMapper stockMapper;
    public int updateCouponStock(Integer couponId, Integer num) {
        return stockMapper.updateCouponStock(couponId,num);
    }
}
